FROM redis:5.0.3
COPY redis.conf /usr/local/etc/redis/redis.conf

ENV LANG="en_US.utf8"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 6379
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]